package server.java.autoduel.Network;

import java.nio.ByteBuffer;

/**
 * This is a common class for constructing packets
 * 
 * @author Ian Axelrod
 * @author Liz Ha
 * @author Andrew Muldowney
 * @author Edward Futch
 */
public interface IPacketizable {

	/**
	 * All classes that can be passed to client need this method to create a
	 * packet to send to the client
	 * 
	 * @param opcode
	 *            the opcode to encode by
	 * @return the ByteBuffer for sending to client
	 */
	abstract ByteBuffer encodePacket(OPCODES opcode);

}
